<template>
  <div>
    <div>count: {{ count }}</div>
    <button @click="increment">Increment</button>
  </div>
</template>

<script>
export default {
  computed: {
    count() {
      return this.$store.state.count
    },
  },
  methods: {
    increment() {
      this.$store.commit("increment")
      console.log("this.count", this.count)
    },
  },
}
</script>

<style></style>
